package com.weixingtu.commuterCar.service.impl;

import com.weixingtu.commuterCar.bean.Line;
import com.weixingtu.commuterCar.dao.LineDao;
import com.weixingtu.commuterCar.dao.impl.LineDaoImpl;
import com.weixingtu.commuterCar.service.LineService;

import java.util.List;

public class LineServiceImpl implements LineService {
    private static LineDao dao = new LineDaoImpl();
    @Override
    public void insert(Line line) {
        dao.insert(line);
    }

    @Override
    public List<Line> queryLocation() {
        return dao.queryLocation();
    }

    /**
     * 删除line表所有数据
     */
    @Override
    public boolean delAll() {
        return dao.delAll();
    }
}
